package com.zhiyou10.crowdfunding.service.impl;

import java.util.List;
import java.util.Map;
import java.util.Set;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.zhiyou10.crowdfunding.service.IRepayService;
import com.zhiyou10.crowdfunding.vo.Repay;
import com.zhiyou10.crowdfunding.vo.mapper.RepayMapper;
@Service
public class RepayServiceImpl implements IRepayService {
	@Autowired
	private RepayMapper mapper;
	@Override
	public boolean add(Repay vo) throws Exception {
		// TODO Auto-generated method stub
		return this.mapper.doCreate(vo);
	}

	@Override
	public boolean edit(Repay vo) throws Exception {
		// TODO Auto-generated method stub
		return this.mapper.doUpdate(vo);
	}

	@Override
	public boolean remove(Set<Integer> ids) throws Exception {
		// TODO Auto-generated method stub
		return this.mapper.doRemoveBatch(ids);
	}

	@Override
	public Repay get(Integer id) throws Exception {
		// TODO Auto-generated method stub
		return this.mapper.findById(id);
	}

	@Override
	public List<Repay> list() throws Exception {
		// TODO Auto-generated method stub
		return this.mapper.findAll();
	}

	@Override
	public Long findAllCount() throws Exception {
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	public List<Repay> findAllSplit(Map<String, Object> map) throws Exception {
		// TODO Auto-generated method stub
		return null;
	}

}
